package cn.b.sky.admin.dao;

import cn.b.sky.admin.model.ECode;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminECodeDao {

  /**
   * 
  * @Title:selectECodeList 
  * @Description:查询枚举码列表
  * @param eCodeType 枚举码类型
  * @return List<ECode>
  * @author: ZhaoXin
  * @date: 2015-7-27 上午10:33:51
  * @version: V1.0
   */
  List<ECode> selectECodeList(@Param("eCodeType") String eCodeType, @Param("languageCode") String languageCode);

  ECode selectEcodeByECodeTypeAndLanguageCodeAndECode(@Param("ecode") String ecode,
                                                      @Param("eCodeType") String eCodeType, @Param("languageCode") String languageCode);

  public int deleteECodesByECodeType(@Param("ecodeType") String ecodeType);

  public void insertECode(ECode eCode);

  public int deleteECodeTlsByECodeType(@Param("ecodeType") String ecodeType);

  public List<ECode> selectECodeListByECodeType(@Param("eCodeType") String eCodeType);

  public List<ECode> selectEcodeListForTranslate(@Param("eCodeType") String eCodeType,
                                                 @Param("sourceLanguageCode") String sourceLanguageCode, @Param("toLanguageCode") String toLanguageCode);
  
  public int updateECode(ECode eCode);
  
  public int getECodeCount(@Param("eCodeType") String eCodeType, @Param("eCode") String eCode);
  
  public int deleteECodeTlsByECodeTypeAndECode(@Param("eCodeType") String eCodeType, @Param("eCode") String eCode);
}
